import os
obj=os.system('dir xxx')
if obj ==0:
    print('ok')
else:
    print('err')